home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 66
/
Vol 66.iso
/
games
/
doodle_d.swf
/
scripts
/
frame_4
/
DoAction_6.as
< prev
next >
Wrap
Text File
|
2013-04-24
|
351b
|
17 lines
function turn()
{
ship._rotation = dir;
if(control)
{
degrees = dir;
degrees -= 90;
radians = degrees * rad;
statMovX = 10 * cos(radians);
statMovY = 10 * sin(radians);
thrustDX = speed * cos(radians);
thrustDY = speed * sin(radians);
dx = thrustDX;
dy = thrustDY;
}
}